package unit21.classLoader;

import java.awt.Event;

import java.awt.EventQueue;
import java.lang.reflect.InvocationTargetException;
import java.net.InetSocketAddress;

import javax.swing.JFrame;

//import com.sun.java.util.jar.pack.Package.Class.Method;

public class ClassLoaderTest {
	public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
		/*EventQueue.invokeLater(new Runnable() {
			@Override
			public void run() {
				// TODO Auto-generated method stub
				JFrame f=new ClassLoaderFrame();
				f.setTitle("ClassLoader");
				f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				f.setVisible(true);
			}
		});*/
		ClassLoader loader=new CryptoClassLoader(Integer.parseInt(""));
		Class<?> c=loader.loadClass("");
		java.lang.reflect.Method m=c.getMethod("main", String[].class);
		m.invoke(null,(Object)new String[]{});
		
	}
}
